package com.yiyuan.app.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.guaike.core.mybatis.plugins.BaseDAO;
import com.yiyuan.app.entity.po.GConfPrizePO;
import com.yiyuan.app.mapper.GConfPrizeMapper;
import org.springframework.stereotype.Repository;

@Repository
public class GConfPrizeDAO extends BaseDAO<GConfPrizeMapper, GConfPrizePO> {


    public GConfPrizePO findOneMachinePrize(Integer prizeType, Integer multipleType) {
        LambdaQueryWrapper<GConfPrizePO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(GConfPrizePO::getPrizeType, prizeType);
        queryWrapper.eq(GConfPrizePO::getMultipleType, multipleType);
        return getBaseMapper().selectOne(queryWrapper);
    }
}
